Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (39 sloc) 861 Bytes
<?php
namespace Oro\Bundle\ApiBundle\Config;
use Oro\Bundle\ApiBundle\Processor\Config\ConfigContext;
/**
* An instance of this class can be added to the config extras of the context
* to request human-readable descriptions of entities and fields.
*/
class DescriptionsConfigExtra implements ConfigExtraInterface
{
const NAME = 'descriptions';
/**
* {@inheritdoc}
*/
public function getName()
{
return self::NAME;
}
/**
* {@inheritdoc}
*/
public function configureContext(ConfigContext $context)
{
// no any modifications of the ConfigContext is required
}
/**
* {@inheritdoc}
*/
public function isPropagable()
{
return false;
}
/**
* {@inheritdoc}
*/
public function getCacheKeyPart()
{
return self::NAME;
}
}
You can’t perform that action at this time.