EntityTestCondition.php in Page Manager 8
Same filename and directory in other branches
File
tests/modules/page_manager_routing_test/src/Plugin/Condition/EntityTestCondition.phpView source
<?php
namespace Drupal\page_manager_routing_test\Plugin\Condition;
use Drupal\Core\Condition\ConditionPluginBase;
/**
* @todo.
*
* @Condition(
* id = "page_manager_routing_test__entity_test",
* label = @Translation("Entity Test"),
* context = {
* "entity_test" = @ContextDefinition("entity:entity_test")
* }
* )
*/
class EntityTestCondition extends ConditionPluginBase {
/**
* {@inheritdoc}
*/
public function evaluate() {
return (bool) $this
->getContext('entity_test');
}
/**
* {@inheritdoc}
*/
public function summary() {
return '';
}
}
Classes
Name | Description |
---|---|
EntityTestCondition | @todo. |