public function ViewmodepagePatternInterface::applies in View Mode Page 4.0.x
Same name and namespace in other branches
- 8.3 src/ViewmodepagePatternInterface.php \Drupal\view_mode_page\ViewmodepagePatternInterface::applies()
- 3.2.x src/ViewmodepagePatternInterface.php \Drupal\view_mode_page\ViewmodepagePatternInterface::applies()
Determines if this pattern can apply a given object.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity used to determine if this plugin can apply.
Return value
bool Returns true or false
1 method overrides ViewmodepagePatternInterface::applies()
- ViewmodepagePattern::applies in src/
Entity/ ViewmodepagePattern.php - Determines if this pattern can apply a given object.
File
- src/
ViewmodepagePatternInterface.php, line 217
Class
- ViewmodepagePatternInterface
- Provides an interface for defining Viewmodepage pattern entities.
Namespace
Drupal\view_mode_pageCode
public function applies(EntityInterface $entity);