Craft\Seomatic_MetaFieldType::getElementSources PHP Méthode

getElementSources() protected méthode

Returns sources avaible to an element type.
protected getElementSources ( $elementType ) : mixed
Résultat mixed
    protected function getElementSources($elementType)
    {
        $sources = array();
        foreach ($elementType->getSources() as $key => $source) {
            if (!isset($source['heading'])) {
                $sources[] = array('label' => $source['label'], 'value' => $key);
            }
        }
        return $sources;
    }