classes/hypeJunction/Prototyper/ActionController.php
public function with($entity = array(), $action = 'all', array $params = array()) {

		$entity = $this->entityFactory->build($entity);
		$fields = $this->prototype->fields($entity, $action, $params);
		return new Elements\ActionController($entity, $action, $fields);
	}
public function with($entity = array(), $action = 'all', array $params = array()) {

		$entity = $this->entityFactory->build($entity);
		$fields = $this->prototype->fields($entity, $action, $params);
		return new Elements\ActionController($entity, $action, $fields);
	}
public function with ( $ entity = array ( ) , $ action = 'all' , array $ params = array ( ) ) { $ entity = $ this -> entityFactory -> build ( $ entity ) ; $ fields = $ this -> prototype -> fields ( $ entity , $ action , $ params ) ; return new Elements \ ActionController ( $ entity , $ action , $ fields ) ; }
Returns a form element object

@param mixed  $entity ElggEntity or an array of entity attributes
@param string $action Action name (used as a plugin hook type)
@param array  $params Additional context params to pass to the hook
@return Elements\ActionController
Returns a form element object