You are here

public function ContentTypeConfigService::loadEntityByContentType in Content Planner 8

Load config entity by Content Type.

Parameters

string $content_type:

Return value

bool|\Drupal\content_calendar\Entity\ContentTypeConfig|null|static

File

modules/content_calendar/src/ContentTypeConfigService.php, line 43

Class

ContentTypeConfigService
Class ContentTypeConfigService.

Namespace

Drupal\content_calendar

Code

public function loadEntityByContentType($content_type) {
  if ($entity = ContentTypeConfig::load($content_type)) {
    return $entity;
  }
  return FALSE;
}