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