public function AmpMetadata::getNodeType in Accelerated Mobile Pages (AMP) 8
Get the node type for these settings.
Return value
string The identifier of the node type.
Overrides AmpMetadataInterface::getNodeType
File
- src/
Entity/ AmpMetadata.php, line 176
Class
- AmpMetadata
- Defines the AMP Metadata entity.
Namespace
Drupal\amp\EntityCode
public function getNodeType() {
if ($this->globalToggle || empty($this->nodeTypeId)) {
return NULL;
}
else {
return $this->nodeTypeId;
}
}