public function EntityAliasTypeBase::applies in Pathauto 8
Determines if this plugin type can apply a given object.
Parameters
object $object: The object used to determine if this plugin can apply.
Return value
bool Whether this plugin applies to the given object.
Overrides AliasTypeInterface::applies
1 call to EntityAliasTypeBase::applies()
- ForumAliasType::applies in src/
Plugin/ pathauto/ AliasType/ ForumAliasType.php - Determines if this plugin type can apply a given object.
1 method overrides EntityAliasTypeBase::applies()
- ForumAliasType::applies in src/
Plugin/ pathauto/ AliasType/ ForumAliasType.php - Determines if this plugin type can apply a given object.
File
- src/
Plugin/ pathauto/ AliasType/ EntityAliasTypeBase.php, line 316
Class
- EntityAliasTypeBase
- A pathauto alias type plugin for entities with canonical links.
Namespace
Drupal\pathauto\Plugin\pathauto\AliasTypeCode
public function applies($object) {
return $object instanceof FieldableEntityInterface && $object
->getEntityTypeId() == $this
->getEntityTypeId();
}