protected function getPageLinkTypes()
    {
        $result = [];

        $apiResult = Event::fire('backend.richeditor.listTypes');
        if (is_array($apiResult)) {
            foreach ($apiResult as $typeList) {
                if (!is_array($typeList)) {
                    continue;
                }

                foreach ($typeList as $typeCode => $typeName) {
                    $result[$typeCode] = $typeName;
                }
            }
        }

        return $result;
    }
protected function getPageLinkTypes()
    {
        $result = [];

        $apiResult = Event::fire('backend.richeditor.listTypes');
        if (is_array($apiResult)) {
            foreach ($apiResult as $typeList) {
                if (!is_array($typeList)) {
                    continue;
                }

                foreach ($typeList as $typeCode => $typeName) {
                    $result[$typeCode] = $typeName;
                }
            }
        }

        return $result;
    }
protected function getPageLinkTypes ( ) { $ result = [ ] ; $ apiResult = Event :: fire ( 'backend.richeditor.listTypes' ) ; if ( is_array ( $ apiResult ) ) { foreach ( $ apiResult as $ typeList ) { if ( ! is_array ( $ typeList ) ) { continue ; } foreach ( $ typeList as $ typeCode => $ typeName ) { $ result [ $ typeCode ] = $ typeName ; } } } return $ result ; }
Returns a list of registered page link types.
This is reserved functionality for separating the links by type.
@return array Returns an array of registered page link types
Returns a list of registered page link types . This is reserved functionality for separating the links by type .