You are here

public static function EntityPropertyMapper::create in Facebook Instant Articles 7.2

Parameters

string $entity_type:

\stdClass $entity:

InstantArticle $instantArticle:

Return value

EntityPropertyMapper

File

modules/fb_instant_articles_display/src/EntityPropertyMapper.php, line 68
Contains \Drupal\fb_instant_articles_display\EntityPropertyMapper.

Class

EntityPropertyMapper
Class EntityPropertyMapper @package Drupal\fb_instant_articles_display

Namespace

Drupal\fb_instant_articles_display

Code

public static function create($entity_type, $entity, InstantArticle $instantArticle) {
  return new EntityPropertyMapper($entity_type, $entity, $instantArticle);
}