Sulu\Component\Content\ComplexContentType::getDefaultParams PHP Method

getDefaultParams() public method

public getDefaultParams ( Sulu\Component\Content\Compat\PropertyInterface $property = null )
$property Sulu\Component\Content\Compat\PropertyInterface
    public function getDefaultParams(PropertyInterface $property = null)
    {
        return [];
    }

Usage Example

Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function getDefaultParams(PropertyInterface $property = null)
 {
     $provider = $this->getProvider($property);
     $configuration = $provider->getConfiguration();
     $defaults = ['provider' => new PropertyParameter('provider', 'content'), 'page_parameter' => new PropertyParameter('page_parameter', 'p'), 'tags_parameter' => new PropertyParameter('tags_parameter', 'tags'), 'categories_parameter' => new PropertyParameter('categories_parameter', 'categories'), 'website_tags_operator' => new PropertyParameter('website_tags_operator', 'OR'), 'website_categories_operator' => new PropertyParameter('website_categories_operator', 'OR'), 'sorting' => new PropertyParameter('sorting', $configuration->getSorting(), 'collection'), 'present_as' => new PropertyParameter('present_as', [], 'collection'), 'category_root' => new PropertyParameter('category_root', null), 'display_options' => new PropertyParameter('display_options', ['tags' => new PropertyParameter('tags', true), 'categories' => new PropertyParameter('categories', true), 'sorting' => new PropertyParameter('sorting', true), 'limit' => new PropertyParameter('limit', true), 'presentAs' => new PropertyParameter('presentAs', true)], 'collection'), 'has' => ['datasource' => $configuration->hasDatasource(), 'tags' => $configuration->hasTags(), 'categories' => $configuration->hasCategories(), 'sorting' => $configuration->hasSorting(), 'limit' => $configuration->hasLimit(), 'presentAs' => $configuration->hasPresentAs()], 'datasource' => $configuration->getDatasource(), 'deep_link' => new PropertyParameter('deep_link', $configuration->getDeepLink())];
     return array_merge(parent::getDefaultParams(), $defaults, $provider->getDefaultPropertyParameter());
 }
All Usage Examples Of Sulu\Component\Content\ComplexContentType::getDefaultParams