public function load_args_from_layout_content( array $raw_content, int $counter = 0 ) {

		// Add helper fields to module instance.
		foreach ( $this->helper_fields as $helper_field ) {
			$this->{$helper_field} = $raw_content[ $helper_field ] ?? '';
		}

		$this->raw_content = $raw_content;
		$this->counter     = $counter;
	}
public function load_args_from_layout_content( array $raw_content, int $counter = 0 ) {

		// Add helper fields to module instance.
		foreach ( $this->helper_fields as $helper_field ) {
			$this->{$helper_field} = $raw_content[ $helper_field ] ?? '';
		}

		$this->raw_content = $raw_content;
		$this->counter     = $counter;
	}
public function load_args_from_layout_content ( array $ raw_content , int $ counter = 0 ) { // Add helper fields to module instance. foreach ( $ this -> helper_fields as $ helper_field ) { $ this -> { $ helper_field } = $ raw_content [ $ helper_field ] ?? '' ; } $ this -> raw_content = $ raw_content ; $ this -> counter = $ counter ; }
Map raw fields from acf to object variable.

@param array $raw_content Content values.
@param int   $counter Module location in page layout.
@return void
Map raw fields from acf to object variable .