offre date format fix
This commit is contained in:
		@@ -23,7 +23,10 @@ function erabletheme_preprocess_page(&$variables) {
 | 
			
		||||
 * Implements hook_preprocess_HOOK() for node.html.twig.
 | 
			
		||||
 */
 | 
			
		||||
function erabletheme_preprocess_node(&$variables) {
 | 
			
		||||
  $t = "t";
 | 
			
		||||
  $node = $variables['node'];
 | 
			
		||||
  /** @var Drupal\Core\Datetime\DateFormatterInterface $date_formatter */
 | 
			
		||||
  $date_formatter = \Drupal::service('date.formatter');
 | 
			
		||||
  $variables['date'] = $date_formatter->format($node->created->value, 'custom', 'j F Y', null, 'fr');
 | 
			
		||||
}
 | 
			
		||||
function erabletheme_preprocess_node__view__meetup(&$variables) {
 | 
			
		||||
  /** @var \Drupal\node\Entity $node */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user