src/Form/Admin/Page.php
public function getCmsCategories()
    {
        $categories = array('' => 'No category');

        $results = $this->getEventManager()
            ->trigger(__FUNCTION__, $this, array(
            'categories' => $categories
            ))
            ->last();

        if ($results) {
            $categories = $results;
        }

        return $categories;
    }
public function getCmsCategories()
    {
        $categories = array('' => 'No category');

        $results = $this->getEventManager()
            ->trigger(__FUNCTION__, $this, array(
            'categories' => $categories
            ))
            ->last();

        if ($results) {
            $categories = $results;
        }

        return $categories;
    }
public function getCmsCategories ( ) { $ categories = array ( '' => 'No category' ) ; $ results = $ this -> getEventManager ( ) -> trigger ( __FUNCTION__ , $ this , array ( 'categories' => $ categories ) ) -> last ( ) ; if ( $ results ) { $ categories = $ results ; } return $ categories ; }
An event is triggered so that the modules wishing to associate a category to a CMS page
can add their own categories without adherence between the 2 modules

@return array
An event is triggered so that the modules wishing to associate a category to a CMS page can add their own categories without adherence between the 2 modules