public function PlaceholderResolverTrait::setPlaceholderResolver in Typed Data API enhancements 8
Sets the placeholder resolver.
Parameters
\Drupal\typed_data\PlaceholderResolverInterface $placeholder_resolver: The placeholder resolver.
Return value
$this
File
- src/
PlaceholderResolverTrait.php, line 25
Class
- PlaceholderResolverTrait
- Helper for classes that need the placeholder resolver.
Namespace
Drupal\typed_dataCode
public function setPlaceholderResolver(PlaceholderResolverInterface $placeholder_resolver) {
$this->placeholderResolver = $placeholder_resolver;
return $this;
}