public function Font::setMetadata in @font-your-face 8.3
Sets the Font metadata.
Parameters
mixed $metadata: The Font metadata.
Return value
\Drupal\fontyourface\FontInterface The called Font entity.
Overrides FontInterface::setMetadata
File
- src/
Entity/ Font.php, line 81
Class
- Font
- Defines the Font entity.
Namespace
Drupal\fontyourface\EntityCode
public function setMetadata($metadata) {
$this
->set('metadata', serialize($metadata));
return $this;
}