src/Charcoal/Admin/Widget/SecondaryMenuWidget.php
public function displayOptions()
    {
        if ($this->displayOptions === null) {
            $this->setDisplayOptions($this->defaultDisplayOptions());

            $ident    = $this->ident();
            $metadata = $this->adminSecondaryMenu();

            if (isset($metadata[$ident]['display_options'])) {
                $options = $metadata[$ident]['display_options'];

                if (!is_array($options)) {
                    throw new RuntimeException('The display options must be an associative array.');
                }

                $this->setDisplayOptions(array_merge($this->displayOptions, $options));
            }
        }

        return $this->displayOptions;
    }
public function displayOptions()
    {
        if ($this->displayOptions === null) {
            $this->setDisplayOptions($this->defaultDisplayOptions());

            $ident    = $this->ident();
            $metadata = $this->adminSecondaryMenu();

            if (isset($metadata[$ident]['display_options'])) {
                $options = $metadata[$ident]['display_options'];

                if (!is_array($options)) {
                    throw new RuntimeException('The display options must be an associative array.');
                }

                $this->setDisplayOptions(array_merge($this->displayOptions, $options));
            }
        }

        return $this->displayOptions;
    }
public function displayOptions ( ) { if ( $ this -> displayOptions === null ) { $ this -> setDisplayOptions ( $ this -> defaultDisplayOptions ( ) ) ; $ ident = $ this -> ident ( ) ; $ metadata = $ this -> adminSecondaryMenu ( ) ; if ( isset ( $ metadata [ $ ident ] [ 'display_options' ] ) ) { $ options = $ metadata [ $ ident ] [ 'display_options' ] ; if ( ! is_array ( $ options ) ) { throw new RuntimeException ( 'The display options must be an associative array.' ) ; } $ this -> setDisplayOptions ( array_merge ( $ this -> displayOptions , $ options ) ) ; } } return $ this -> displayOptions ; }
Retrieve the display options for the secondary menu.

@throws RuntimeException If the display options are not an associative array.
@return array
Retrieve the display options for the secondary menu .