public function OnlyOneInterface::setFormatter in Allow a content type only once (Only One) 8
Set the formatter for printing.
Parameters
\Drupal\onlyone\OnlyOnePrintStrategyInterface $formatter: The formatter type.
Return value
\Drupal\onlyone\OnlyOneInterface An object implementing the OnlyOneInterface interface.
1 method overrides OnlyOneInterface::setFormatter()
- OnlyOne::setFormatter in src/
OnlyOne.php - Set the formatter for printing.
File
- src/
OnlyOneInterface.php, line 99
Class
- OnlyOneInterface
- Interface OnlyOneInterface.
Namespace
Drupal\onlyoneCode
public function setFormatter(OnlyOnePrintStrategyInterface $formatter);