final protected function getContextChoices()
    {
        $contextChoices = [];
        /* @var ContextInterface $context */
        foreach ($this->contextManager->findAll() as $context) {
            $contextChoices[$context->getId()] = $context->getName();
        }

        return $contextChoices;
    }
final protected function getContextChoices()
    {
        $contextChoices = [];
        /* @var ContextInterface $context */
        foreach ($this->contextManager->findAll() as $context) {
            $contextChoices[$context->getId()] = $context->getName();
        }

        return $contextChoices;
    }
final protected function getContextChoices ( ) { $ contextChoices = [ ] ; /* @var ContextInterface $context */ foreach ( $ this -> contextManager -> findAll ( ) as $ context ) { $ contextChoices [ $ context -> getId ( ) ] = $ context -> getName ( ) ; } return $ contextChoices ; }
Returns a context choice array.

@return string[]
Returns a context choice array .