PHP Class VersionPress\ChangeInfos\ChangeInfoUtils

Show file Open project: versionpress/versionpress Class Usage Examples

Public Methods

Method Description
changeInfoRepresentsEntity ( $changeInfo, $entityName )
extractTags ( $tags, $oldEntity, $newEntity ) : array Extract tags new / old entity. Tags in actions.yml describes from which fields should be their values extracted.

Method Details

changeInfoRepresentsEntity() public static method

public static changeInfoRepresentsEntity ( $changeInfo, $entityName )

extractTags() public static method

The field is at first searched in the $newEntity.
public static extractTags ( $tags, $oldEntity, $newEntity ) : array
$tags
$oldEntity
$newEntity
return array