You are here

public function WebformEntityReferenceManagerInterface::hasField in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/WebformEntityReferenceManagerInterface.php \Drupal\webform\WebformEntityReferenceManagerInterface::hasField()

Determine if the entity has a webform entity reference field.

Parameters

\Drupal\Core\Entity\EntityInterface|null $entity: A fieldable content entity.

Return value

bool TRUE if the entity has a webform entity reference field.

1 method overrides WebformEntityReferenceManagerInterface::hasField()
WebformEntityReferenceManager::hasField in src/WebformEntityReferenceManager.php
Determine if the entity has a webform entity reference field.

File

src/WebformEntityReferenceManagerInterface.php, line 70

Class

WebformEntityReferenceManagerInterface
Defines an interface for webform entity manager classes.

Namespace

Drupal\webform

Code

public function hasField(EntityInterface $entity = NULL);