Loads the tag with the given name.
public findByName ( $name ) : |
||
$name | ||
리턴 |
/** * {@inheritdoc} */ public function exportData($propertyValue) { if (false === is_array($propertyValue)) { return ''; } foreach ($propertyValue as &$propertyValueItem) { if (is_string($propertyValueItem)) { $tag = $this->tagManager->findByName($propertyValueItem); if ($tag) { $propertyValueItem = $tag->getId(); } } } if (!empty($propertyValue)) { return json_encode($propertyValue); } return ''; }