You are here

public function TempStoreTrait::setDateFormatter in Rules 8.3

Setter injection for the date formatter service.

Parameters

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The service.

Return value

$this

File

src/Ui/TempStoreTrait.php, line 123

Class

TempStoreTrait
Provides methods for modified rules components in temporary storage.

Namespace

Drupal\rules\Ui

Code

public function setDateFormatter(DateFormatterInterface $date_formatter) {
  $this->dateFormatter = $date_formatter;
  return $this;
}