public function AmpMetadata::setNodeType in Accelerated Mobile Pages (AMP) 8
Apply these settings per node type.
Parameters
string $node_type_id: The identifier of the node type.
Overrides AmpMetadataInterface::setNodeType
File
- src/
Entity/ AmpMetadata.php, line 188
Class
- AmpMetadata
- Defines the AMP Metadata entity.
Namespace
Drupal\amp\EntityCode
public function setNodeType($node_type_id) {
$this->globalToggle = FALSE;
$this->nodeTypeId = $node_type_id;
}