setPresentAs() public method

public setPresentAs ( boolean $presentAs )
$presentAs boolean
示例#1
0
 /**
  * {@inheritdoc}
  */
 public function enablePresentAs($enable = true)
 {
     $this->configuration->setPresentAs($enable);
     return $this;
 }
示例#2
0
 private function getProviderConfiguration()
 {
     $configuration = new ProviderConfiguration();
     $configuration->setTags(true);
     $configuration->setCategories(false);
     $configuration->setLimit(true);
     $configuration->setPresentAs(true);
     $configuration->setPaginated(true);
     return $configuration;
 }
示例#3
0
 /**
  * Initiate configuration.
  *
  * @return ProviderConfigurationInterface
  *
  * @deprecated use self::createConfigurationBuilder instead.
  */
 protected function initConfiguration($tags, $categories, $limit, $presentAs, $paginated, $sorting)
 {
     $configuration = new ProviderConfiguration();
     $configuration->setTags($tags);
     $configuration->setCategories($categories);
     $configuration->setLimit($limit);
     $configuration->setPresentAs($presentAs);
     $configuration->setPaginated($paginated);
     $configuration->setSorting($sorting);
     return $configuration;
 }