You are here

public function Mapping::hasMapping in GatherContent 8.5

Same name and namespace in other branches
  1. 8.3 src/Entity/Mapping.php \Drupal\gathercontent\Entity\Mapping::hasMapping()
  2. 8.4 src/Entity/Mapping.php \Drupal\gathercontent\Entity\Mapping::hasMapping()

Validate if object is configured with mapping.

Return value

bool Return TRUE if object has mapping, otherwise FALSE.

Overrides MappingInterface::hasMapping

File

src/Entity/Mapping.php, line 318

Class

Mapping
Defines the GatherContent Mapping entity.

Namespace

Drupal\gathercontent\Entity

Code

public function hasMapping() {
  return !empty($this
    ->get('data'));
}