You are here

public function WebformContentCreatorEntity::equalsContentType in Webform Content Creator 3.x

Same name and namespace in other branches
  1. 8 src/Entity/WebformContentCreatorEntity.php \Drupal\webform_content_creator\Entity\WebformContentCreatorEntity::equalsContentType()

Check if the content type id is equal to the configured content type.

Parameters

string $ct: Content type id.

Return value

bool True, if the parameter is equal to the content type id of Webform content creator entity. Otherwise, returns false.

Overrides WebformContentCreatorInterface::equalsContentType

File

src/Entity/WebformContentCreatorEntity.php, line 609

Class

WebformContentCreatorEntity
Defines the Webform Content creator entity.

Namespace

Drupal\webform_content_creator\Entity

Code

public function equalsContentType($ct) {
  return $ct === $this
    ->getContentType();
}