You are here

public function ViewmodepagePatternInterface::applies in View Mode Page 8.3

Same name and namespace in other branches
  1. 4.0.x src/ViewmodepagePatternInterface.php \Drupal\view_mode_page\ViewmodepagePatternInterface::applies()
  2. 3.2.x src/ViewmodepagePatternInterface.php \Drupal\view_mode_page\ViewmodepagePatternInterface::applies()

Determines if this pattern can apply a given object.

Parameters

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_page

Code

public function applies(EntityInterface $entity);