Commit 35546164 authored by dpi's avatar dpi

Remove isTemplate method, use instanceof ChannelInterface instead.

parent c4d1b23a
......@@ -116,11 +116,4 @@ class IdentityChannelManager extends DefaultPluginManager implements IdentityCha
return ['courier_email'];
}
/**
* {@inheritdoc}
*/
public function isTemplate(EntityInterface $entity) {
return in_array($entity->getEntityTypeId(), array_keys($this->getChannels()));
}
}
......@@ -78,17 +78,4 @@ interface IdentityChannelManagerInterface {
*/
public function getChannelsForIdentity(EntityInterface $identity);
/**
* Determine if an entity is a template entity.
*
* @deprecated: use instanceof ChannelInterface
*
* @param \Drupal\Core\Entity\EntityInterface $entity
* An entity, possibly a template.
*
* @return bool
* Whether the entity is a template entity.
*/
public function isTemplate(EntityInterface $entity);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment