public function Mapping::hasMapping in GatherContent 8.3
Same name and namespace in other branches
- 8.5 src/Entity/Mapping.php \Drupal\gathercontent\Entity\Mapping::hasMapping()
- 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 285
Class
- Mapping
- Defines the GatherContent Mapping entity.
Namespace
Drupal\gathercontent\EntityCode
public function hasMapping() {
return !empty($this
->get('data'));
}