public function AmpMetadataInfo::ampMetadataHasGlobal in Accelerated Mobile Pages (AMP) 8
Check if global settings exist for AMP metadata.
Return value
boolean Returns TRUE if global settings exist for AMP metadata.
File
- src/
AmpMetadataInfo.php, line 58
Class
- AmpMetadataInfo
- Service class for retrieving information about AMP Metadata.
Namespace
Drupal\ampCode
public function ampMetadataHasGlobal() {
return !empty($this->entityTypeManager
->getStorage('amp_metadata')
->load('global'));
}